package cn.com.dcsgo.mapper;

import cn.com.dcsgo.domain.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * 针对表【sys_user_role(用户与角色对应关系)】的数据库操作Mapper
 *
 * @author Dcsgo
 * @since 2025-09-22 15:09:11
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据用户ID查询角色ID列表
     *
     * @param userId 用户ID
     * @return 角色ID列表
     */
    List<Long> selectRoleIdListByUserId(@Param("userId") Long userId);
}




